package com.example.pfe_copie_finale;

import android.app.*;
import android.os.Bundle;
import android.view.View;
import android.widget.*;

public class ListeChoix extends ListActivity  {
   private TextView selection;
   private String[] semaine = {"Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"};
   
   @Override
   public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.choix);
        setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, semaine));
        selection = (TextView) findViewById(R.id.selection);
   }

   @Override
   protected void onListItemClick(ListView l, View v, int position, long id) {
      selection.setText(semaine[position]);
   } 
}